home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / BITMAP.ZIP / BMMANIP.H < prev    next >
Text File  |  1993-04-19  |  2KB  |  53 lines

  1. /*
  2. **    $id: ssvcid bmmanip.h 1.3 08/03/92 10:01 am$
  3. **        This file contains the function prototypes for the functions in
  4. **    bmmanip.c.
  5. **
  6. **    (C) 1991-3 Larry Widing
  7. */
  8. #if    !defined(__BMMANIP_H__)
  9. #define    __BMMANIP_H__    1
  10.  
  11. #if    defined(CDECL)
  12.     #undef    CDECL
  13. #endif
  14.  
  15. #if    !defined(CDECL)
  16.     #if    defined(__cplusplus)
  17.         #define    CDECL    "C"
  18.     #else
  19.         #define    CDECL
  20.     #endif
  21. #endif
  22.  
  23. extern CDECL int DIBitmapColors(BITMAPINFO FAR *bmi);
  24. extern CDECL LPSTR DIBitmapBits(BITMAPINFO FAR *bmi);
  25. extern CDECL HPALETTE CreateDibPalette(HDIB hbm);
  26. extern CDECL BOOL DrawBitmap(HDC hdc, int x, int y, HBITMAP hbm);
  27. extern CDECL BOOL DrawDIBitmap(HDC hdc, int x, int y, HDIB hbm, HPALETTE palette);
  28. extern CDECL BOOL StretchDIBitmap(HDC hdc, int x, int y, int tWidth, int tHeight, HDIB hbm, HPALETTE palette);
  29. extern CDECL HBITMAP CopyBitmap(HBITMAP hbm);
  30. extern CDECL HANDLE CopyDIBitmap(HDIB hbm);
  31. extern CDECL HBITMAP DibToBitmap(HDIB hbm);
  32. extern CDECL HDIB BitmapToDIB(HBITMAP hbm, int mode);
  33. extern CDECL int DibIsOs2(HDIB hbm);
  34. extern CDECL int DibIsCompressed(HDIB hbm);
  35. extern CDECL int DibIsOs2(HDIB hbm);
  36. extern CDECL int DibIsCompressed(HDIB hbm);
  37.  
  38. #endif    /* !defined(__BMMANIP_H__) */
  39.  
  40. /*
  41. **    Modification History
  42. **    --------------------
  43. **    $lgb$
  44. ** 10/15/91     Larry Widing   Initial version for Win Tech Journal Article.
  45. ** 11/12/91     Larry Widing   Added prototypes for DibIsOs2() and
  46. **                             DibIsCompressed().
  47. ** 02/10/92     Larry Widing   Added support for HDIB type.  Adde
  48. **                             CreateDibPalette() prototype.
  49. ** 08/03/92     Larry Widing   Added StretchDIBitmap().
  50. **    $lge$
  51. */
  52. 
  53.